package com.zm.study.model;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/** @RefreshScope  //更新配置文件
 * @Comment：
 * @Author: 邹渺
 * @Date: 2019/9/12
 * @Time: 14:59
 */
@RefreshScope
@RestController
public class HelloController {

    @Value("${neo.hello}")
    private String hello;

    @RequestMapping("helloword")
    public String helloword(){
        return this.hello;
    }
}